package com.event;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class EventTest {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context =
				new AnnotationConfigApplicationContext(DemoEventConfig.class);
		DemoPublisher bean = context.getBean(DemoPublisher.class);
		bean.publisher();
		context.close();

	}
}
